package com.itheima.pattern.observer;

public class Client {

    /**
     * 观察者模式
     * @param args
     */
    public static void main(String[] args) {
        Subject subject = new SubscriptionSubject();

        subject.attach(new WeixinUser("柳淇"));
        subject.attach(new WeixinUser("柳岩"));
        subject.attach(new WeixinUser("老白"));
        subject.attach(new WeixinUser("刘杰"));

        subject.notify("我想你了");

    }
}
